package com.test.model;

import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;

public class EbOrderDetail implements Serializable {
    @TableId
    private Integer eodId;

    private Integer eoId;

    private Integer epId;

    private Integer eodQuantity;

    private BigDecimal eodCost;

    private static final long serialVersionUID = 1L;


    public Integer getEodId() {
        return eodId;
    }


    public void setEodId(Integer eodId) {
        this.eodId = eodId;
    }


    public Integer getEoId() {
        return eoId;
    }


    public void setEoId(Integer eoId) {
        this.eoId = eoId;
    }


    public Integer getEpId() {
        return epId;
    }

    public void setEpId(Integer epId) {
        this.epId = epId;
    }


    public Integer getEodQuantity() {
        return eodQuantity;
    }


    public void setEodQuantity(Integer eodQuantity) {
        this.eodQuantity = eodQuantity;
    }

    public BigDecimal getEodCost() {
        return eodCost;
    }

    public void setEodCost(BigDecimal eodCost) {
        this.eodCost = eodCost;
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", eodId=").append(eodId);
        sb.append(", eoId=").append(eoId);
        sb.append(", epId=").append(epId);
        sb.append(", eodQuantity=").append(eodQuantity);
        sb.append(", eodCost=").append(eodCost);
        sb.append("]");
        return sb.toString();
    }


    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EbOrderDetail other = (EbOrderDetail) that;
        return (this.getEodId() == null ? other.getEodId() == null : this.getEodId().equals(other.getEodId()))
                && (this.getEoId() == null ? other.getEoId() == null : this.getEoId().equals(other.getEoId()))
                && (this.getEpId() == null ? other.getEpId() == null : this.getEpId().equals(other.getEpId()))
                && (this.getEodQuantity() == null ? other.getEodQuantity() == null : this.getEodQuantity().equals(other.getEodQuantity()))
                && (this.getEodCost() == null ? other.getEodCost() == null : this.getEodCost().equals(other.getEodCost()));
    }


    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getEodId() == null) ? 0 : getEodId().hashCode());
        result = prime * result + ((getEoId() == null) ? 0 : getEoId().hashCode());
        result = prime * result + ((getEpId() == null) ? 0 : getEpId().hashCode());
        result = prime * result + ((getEodQuantity() == null) ? 0 : getEodQuantity().hashCode());
        result = prime * result + ((getEodCost() == null) ? 0 : getEodCost().hashCode());
        return result;
    }
}
